package com.yuyuan.follow.domain.dto;

import com.qcloud.cos.http.HttpMethodName;
import com.yuyuan.follow.utils.COSUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FollowDTO {
    /**
     * 关注的用户id
     */
    private Long followUserId;
    /**
     * 关注的用户名
     */
    private String followUserName;
    /**
     * 关注用户性别
     */
    private Short followUserSex;
    /**
     * 关注的用户头像
     */
    private String followUserIcon;
    /**
     * 关注用户头像url
     */
    private String followUserIconUrl = "";

    public void handlerImgs(){
        this.followUserIconUrl = COSUtils.getSign(followUserIcon, HttpMethodName.GET);
    }

}
